//
//  MListServices.h
//  NeusoftHBSJSober
//
//  Created by Apple-21 on 15/10/28.
//  Copyright (c) 2015年 com.neusoftsober. All rights reserved.
//

#import "MBaseService.h"
typedef void (^getHotKeyword)(NSMutableArray *result);
// 失败时返回字符串
typedef void (^getKIDComletionHandler)(NSString *result);
typedef void (^getProductErrorHandler)(NSString *error);

typedef void (^getKTypeComletionHandler) (NSDictionary *result);

typedef void (^getProductListCompletionHander)(NSMutableArray *result);


@interface MListServices : MBaseService


- (void)getHotKeywordComletion:(getHotKeyword)success failure:(getProductErrorHandler)failure;
- (NSString *)getKIDwithKeyword:(NSString *)keyword completion:(getKIDComletionHandler)success failure:(getProductErrorHandler)failure;

- (void)getKTypeWithKid:(NSString *)kid comletion:(getKTypeComletionHandler)success failure:(getProductErrorHandler)failure;


- (void)getProductListWithKid:(NSString *)kid latitude:(NSString *)latitude longtitude:(NSString *)longtitude radius:(NSString *)radius sort:(NSString *)sort typeId:(NSString *)typeID priceId:(NSString *)priceId sizeId:(NSString *)sizeId pageIndex:(NSString *)pageIndex completion:(getProductListCompletionHander)success failure:(getProductErrorHandler)failure;

- (void)getMerchantProductListWithMerchantID:(NSString *)MerchantID comletion:(getProductListCompletionHander)success failure:(getProductErrorHandler)failure;
@end
